package com.ibeeking.found.msg.rest.service;

import com.ibeeking.found.msg.service.common.param.MsgNoticeParam;
import me.chanjar.weixin.common.error.WxErrorException;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ISendSmsService
 * @Description 发送短信
 * @Author ibeeking
 * @Date 2020-12-10 9:21
 **/
public interface ISendWxMpMsgService {

    /**
     * 发送公众号模板消息
     *
     * @param templateCode
     * @param paramMap
     * @param toUser
     * @return
     * @throws WxErrorException
     */
    Boolean sendWxMpTemplateMessage(Integer tenantId, String templateCode, List<String> toUser, Map<String, String> paramMap) throws WxErrorException;

    /**
     * 发送微信公众号模板消息
     *
     * @param param
     * @return
     */
    Boolean sendWxMpSimpleMessage(MsgNoticeParam param);

    /**
     * 发送微信公众号群发消息
     *
     * @param param
     * @return
     */
    Boolean sendWxMpMassMessage(MsgNoticeParam param);

}
